/*
 * An XML document type.
 * Localname: dc
 * Namespace: http://www.openarchives.org/OAI/2.0/oai_dc/
 * Java type: org.openarchives.oai.x20.oaiDc.DcDocument
 *
 * Automatically generated - do not modify.
 */
package uk.ljmu.oaibeans.oaidc;
/**
 * A document containing one dc(@http://www.openarchives.org/OAI/2.0/oai_dc/) element.
 *
 * This is a complex type.
 */
public class DcDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements uk.ljmu.oaibeans.oaidc.DcDocument
{
    private static final long serialVersionUID = 1L;
    
    public DcDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DC$0 = 
        new javax.xml.namespace.QName("http://www.openarchives.org/OAI/2.0/oai_dc/", "dc");
    
    
    /**
     * Gets the "dc" element
     */
    public uk.ljmu.oaibeans.oaidc.OaiDcType getDc()
    {
        synchronized (monitor())
        {
            check_orphaned();
            uk.ljmu.oaibeans.oaidc.OaiDcType target = null;
            target = (uk.ljmu.oaibeans.oaidc.OaiDcType)get_store().find_element_user(DC$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "dc" element
     */
    public void setDc(uk.ljmu.oaibeans.oaidc.OaiDcType dc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            uk.ljmu.oaibeans.oaidc.OaiDcType target = null;
            target = (uk.ljmu.oaibeans.oaidc.OaiDcType)get_store().find_element_user(DC$0, 0);
            if (target == null)
            {
                target = (uk.ljmu.oaibeans.oaidc.OaiDcType)get_store().add_element_user(DC$0);
            }
            target.set(dc);
        }
    }
    
    /**
     * Appends and returns a new empty "dc" element
     */
    public uk.ljmu.oaibeans.oaidc.OaiDcType addNewDc()
    {
        synchronized (monitor())
        {
            check_orphaned();
            uk.ljmu.oaibeans.oaidc.OaiDcType target = null;
            target = (uk.ljmu.oaibeans.oaidc.OaiDcType)get_store().add_element_user(DC$0);
            return target;
        }
    }
}
